import requests

with requests.get("http://127.0.0.1:5000") as response:
    print(response.json())